package com.atguigu.gulimall.ware.feign.fallback;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.ware.feign.ProductFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @create: 2024/8/26
 * @author: gyhe10
 * @description:
 **/

@Slf4j
@Component
public class ProductFeignServiceFallback implements ProductFeignService {
    @Override
    public R getSkuNameById(Long skuId) {
        log.error("远程调用 product 微服务根据商品 ID 获取商品名称失败，商品 ID：{}", skuId);
        return R.error("远程调用 product 微服务根据商品 ID 获取商品名称失败");
    }
}
